<?php

namespace app\api\controller\carbon\campus;

use app\common\controller\Api;
use think\Db;

/**
 * 学校接口
 */
class School extends Api
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    /**
     * 获取学校列表
     *
     */
    public function schoolList()
    {
        $province_id = $this->request->request('province_id');
        $this->success('请求成功', model('app\admin\model\carbon\campus\School')->where('province_id', $province_id)->order('id ASC')->select());
    }
}
